import {get,post} from '../../utils/request'
import {LoginData} from './type'

//获取验证码接口
export const getImgCode=()=>{
     return get("auth/authCode");
}

//用户登录接口
export const Login=(data:LoginData)=>{
    return post("administrator/checkloginByCode",data);
}


//获取各种数量
export const dataSum=()=>{
    return get("repairs/getcounts");
}

